home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / mawk10.zip / V7_NOTES < prev    next >
Text File  |  1991-10-05  |  2KB  |  66 lines

  1.                 MAWK ON V7 UNIX
  2.  
  3.  
  4. 09/08/91  Carl Mascott
  5.  
  6.  
  7. 1.  Prerequisites
  8.  
  9. hash8 :    from comp.sources.unix volume 15
  10.     used by V7 Makefiles
  11.     When you build hash8 you should add all long ( > 7 char)
  12.     runtime library function names to the reserved word table
  13.  
  14. memcmp(), memcpy(), memset()
  15.     included in stringlib, comp.sources.unix volume 6
  16.     simple to write if necessary
  17.  
  18. 2.  Procedure
  19.  
  20.     a.  In ~/mawk:
  21.         Rename Makefile.v7 Makefile
  22.         Rename *.c *.cl
  23.         Rename *.xc *.xcl
  24.         Rename *.h *.hl
  25.         Check CFLAGS and LDFLAGS in Makefile
  26.  
  27.         Repeat the applicable portions of the above
  28.         in ~/mawk/rexp and in ~/mawk/config
  29.  
  30.     b.  From ~/mawk:
  31.         make config/V7.h
  32.         make config/Idefault.h
  33.         ln config/V7.h config.h
  34.  
  35.     c.  Do a make in ~/mawk/rexp
  36.  
  37.     d.  Do a make in ~/mawk
  38.  
  39. 3.  Notes
  40.  
  41.     a.  V7 sh scripts
  42.  
  43. The original mawk_test and fpe_test wouldn't run on V7.  V7 sh doesn't
  44. have a comment character ('#').  Since ':' is actually a statement its
  45. arguments need to be quoted if they contain any special characters.
  46.  
  47.     b.  SW_FP_CHECK
  48.  
  49. SW_FP_CHECK has been added.  The particular implementation is
  50. for XENIX-68K 2.3A.  There are no checks preceding calls to
  51. fmod() because the check is built into mawk's fmod().  This
  52. would be a problem on a system that needs SW_FP_CHECK but
  53. already has fmod() in the RTL.  The work-around is to always
  54. use mawk's fmod() if using SW_FP_CHECK.
  55.  
  56. SW_FP_CHECK is activated only if XNX23A is defined.  The
  57. standard V7 Makefile doesn't define XNX23A, so you needn't
  58. concern yourself with SW_FP_CHECK.
  59.  
  60.     c.  3-argument open()
  61.  
  62. Mawk always calls open() with the 3rd argument set to 0.  V7
  63. open() really takes only 2 arguments.  With most UNIX C compilers
  64. extra arguments in function calls are harmless, so the open()
  65. calls have not been altered for V7.
  66.